import dbHelper from './dbHelper'
import deviceTypeTable from './deviceTypeTable'

const InitDatabase=()=>{
	dbHelper.open().then(()=>{
		dbHelper
			.createTable(deviceTypeTable.tableName,deviceTypeTable.columns)
			.then(()=>{
				dbHelper.close(); 
			});
	});
};

export { dbHelper,deviceTypeTable,InitDatabase}